/**
 * Created with CLion.
 * Description: H2默认不鸣笛
 * User: loong
 * Date: 2020-04-30
 * Time: 11:50
 */
#ifndef GOFSTUDY_HUMMERH1MODER_H
#define GOFSTUDY_HUMMERH1MODER_H

#include <iostream>
#include "HummerModel.h"

using namespace std;

class HummerH1Moder : public HummerModel{
private:
    bool AlarmFlag = false;
public:
    void setAlarmFlag(bool alarmFlag) {
        AlarmFlag = alarmFlag;
    }

protected:
    bool isAlarmFlag() override {
        return AlarmFlag;
    }

    void start() override {
        cout << "H1 启动了!!注意避让" << endl;
    }

    void stop() override {
        cout << "H1 要停车了 给大爷让路！" << endl;
    }

    void alarm() override {
        cout << "老子是H1 bibibi" << endl;
    }

    void engineBoom() override {
        cout << "这是H1特有的引擎轰鸣声！" << endl;
    }


};


#endif //GOFSTUDY_HUMMERH1MODER_H
